package com.blog.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.assertj.core.internal.bytebuddy.implementation.bytecode.assign.TypeCasting;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: XieLiKui
 * @Description:聊天类
 **/

@Data
public class Chat implements Serializable {
    private int id;
    private String chatName;
    private String chatHeadPhoto;
    private String chatContent;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date time;
    private String uuid;

    public Chat() {
    }

    public Chat(int id, String chatName, String chatHeadPhoto, String chatContent, Date time, String uuid) {
        this.id = id;
        this.chatName = chatName;
        this.chatHeadPhoto = chatHeadPhoto;
        this.chatContent = chatContent;
        this.time = time;
        this.uuid = uuid;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getChatName() {
        return chatName;
    }

    public void setChatName(String chatName) {
        this.chatName = chatName;
    }

    public String getChatHeadPhoto() {
        return chatHeadPhoto;
    }

    public void setChatHeadPhoto(String chatHeadPhoto) {
        this.chatHeadPhoto = chatHeadPhoto;
    }

    public String getChatContent() {
        return chatContent;
    }

    public void setChatContent(String chatContent) {
        this.chatContent = chatContent;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }
}
